package com.jinkaimen.kqb.ui.activity.h5toapp;

import android.view.View;
import android.widget.ListView;

import com.ht.baselibs.ui.base.BaseActivity;
import com.jinkaimen.kqb.R;
import com.jinkaimen.kqb.bean.NotifyListBean;
import com.jinkaimen.kqb.ui.adapter.UpgradRateAdapter;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lixuebo on 17/7/28.
 */

public class UpgradeRateActivity extends BaseActivity {
    private ListView listView;
    private View footView;
    private UpgradRateAdapter upgradRateAdapter;
    private List<NotifyListBean> list;

    @Override
    protected boolean isStaticPage() {
        return true;
    }

    @Override
    protected void initTitleBar() {

        mTitleBarView.setTitleText("升级降费率");
    }

    @Override
    protected int initContentView() {
        return R.layout.activity_upgrade_rate;
    }

    @Override
    protected void initChildView() {
        listView = (ListView) findViewById(R.id.lv_activity_upgrade_rate);
        list = new ArrayList<>();
        NotifyListBean notifyListBean = new NotifyListBean();
        list.add(notifyListBean);
        list.add(notifyListBean);
        list.add(notifyListBean);
        upgradRateAdapter = new UpgradRateAdapter(UpgradeRateActivity.this, list);
        footView =
                getLayoutInflater().inflate(R.layout.list_upgrade_rate_foot, listView, false);
        listView.addHeaderView(footView, null, false);
        listView.setAdapter(upgradRateAdapter);
    }

    @Override
    protected void initChildData() {

    }

    @Override
    protected void setChildViewListener() {

    }

    @Override
    public void onClick(View v) {
        super.onClick(v);

        switch (v.getId()) {
            case R.id.bt_share:


                break;
        }

    }

}
